package com.opencloud.ywt.provider.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.opencloud.ywt.client.model.entity.*;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;


@Repository
public interface BhyfStudentMapper extends BaseMapper<BhyfStudent> {
    List<BhyfStudent>  getBhyfStudentList(@Param("gid")Integer gid,@Param("gradenum")Integer gradenum,@Param("classid")Integer classid,@Param("studentname")String studentname,@Param("personid")Integer personid);

    List<BhyfRecordRemark>  getBhyfRecordRemarkList(@Param("personid")Integer personid, @Param("startdate")String startdate, @Param("enddate")String enddate);

    List<BhyfTempCheck>  getBhyfTempCheckList(@Param("personid")Integer personid, @Param("startdate")String startdate, @Param("enddate")String enddate);

    List<BhyfRecordRemark>  getBhyfRecordRemarkListByClass(@Param("classid")Integer classid,@Param("checkdate")String checkdate);

    List<BhyfTempCheck>  getBhyfTempCheckListByClass(@Param("classid")Integer classid,@Param("checkdate")String checkdate);

    List<BhyfCardRecordDateResult> getGardenCardRecordGroupByDate(@Param("gid")Integer gid, @Param("startdate")String startdate, @Param("enddate")String enddate);

    List<BhyfCardRecordDateResult> getClassCardRecordGroupByDate(@Param("classid")Integer classid, @Param("startdate")String startdate, @Param("enddate")String enddate);

    List<BhyfCardRecordClassResult> getGardenCardRecordGroupByClass(@Param("gid")Integer gid, @Param("startdate")String startdate, @Param("enddate")String enddate);

    List<BhyfGardenData> getGardenDataGroupByClass(@Param("gid")Integer gid,@Param("checkdate")String checkdate);

    List<BhyfClassData> getClassDataList(@Param("gid")Integer gid,@Param("classid")Integer classid,@Param("checkdate")String checkdate);

    List<BhyfGardenInfo> getGardenInfoList(@Param("keyword")String keyword,@Param("provinceid")Integer provinceid,@Param("gid")Integer gid);

    List<BhyfStudent>  getAllBhyfStudentList(@Param("gid")Integer gid,@Param("classid")Integer classid,@Param("studentname")String studentname,@Param("personid")Integer personid);

    List<BhyfBdbWatchBattery> getWatchBatteryList(@Param("gid")Integer gid,@Param("classid")Integer classid,@Param("personid")Integer personid, @Param("starttime")String starttime, @Param("endtime")String endtime);

    List<BhyfBdbBeaconBattery> getBeaconBatteryList(@Param("gid")Integer gid,@Param("classid")Integer classid,@Param("starttime")String starttime, @Param("endtime")String endtime);

    List<BhyfBdbBeaconBattery> getBeaconBatteryLastList(@Param("gid")Integer gid,@Param("starttime")String starttime, @Param("endtime")String endtime);

    List<BhyfBdbWatchVersion> getWatchVersionList(@Param("gid")Integer gid,@Param("classid")Integer classid,@Param("personid")Integer personid, @Param("starttime")String starttime, @Param("endtime")String endtime);

    List<BhyfBdbWatchBattery> getWatchBatteryLastList(@Param("mac")String  mac,@Param("starttime")String starttime, @Param("endtime")String endtime);

    List<BhyfBdbWatchBattery> getGardenBadBatteryWatchList(@Param("gid")Integer gid,@Param("starttime")String starttime, @Param("endtime")String endtime);
}